package com.haodf.skeleton.anim

import android.animation.ValueAnimator
import android.graphics.Canvas
import android.graphics.Paint

/**
 * @author xiaxiao
 * @date 2023/5/10.
 * loading时的等待动画
 *
 */
interface ILoadingAnimtor {
    companion object {
        const val TYPE_BAI_JV_GUO_XI = 0
        const val TYPE_RUO_YIN_RUO_XIAN = 1
    }

    fun onDraw(canvas: Canvas)

    fun onInit()

    fun createAnim(): ValueAnimator

    fun drawFrame(canvas: Canvas)

    fun start()

    fun cancel()

    fun setPaint(p: Paint)
}